# coding=utf-8
from flask import Flask

from rpialert.base.log4py import logger
from rpialert.base.tools.regexConverter import RegexConverter

app = Flask(__name__)
app.config.from_object('config')
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
app.url_map.converters['regex'] = RegexConverter

logger.info("配置文件路径 ====> " + app.config["RPIALERT_CONF"])

from rpialert.views import   screenctrl

# http
app.register_blueprint(screenctrl.alert)

